package com.fnzn.entranceGuard.rest.base;

import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author wf_sxf@163.com
 * @date 2018/5/24 10:52
 */
public class BaseRest {
    @Autowired
    private HttpServletRequest request;
    protected org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(this.getClass());

  /*  *//**
     * 根据请求heard中的token获取用户角色
     *
     * @return 角色名
     *//*
    public List<String> getRole() {
        return UserUtils.getRole(request);
    }
    *//**
     * 根据请求heard中的token获取用户ID
     *
     * @return 角色名
     *//*
    public String getUserId() {
        return UserUtils.getUserId(request);
    }*/
}
